package com.fjxd.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjxd.user.pojo.User;
import com.fjxd.user.pojo.vo.FractionVo;
import com.fjxd.user.pojo.vo.MoneyVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    MoneyVo getMoney(Integer id);

    FractionVo getFraction(Integer id);

    boolean upMoney(Integer id, double money);

    User findUserByUserAndPwd(User u);

    boolean addMoney(Integer id, double money);

    boolean updateUser(Object id,Object newPwd);


}